package com.yao.shardingdemo.service;

import com.yao.shardingdemo.entity.User;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Henry Yao
 */
public interface UserService {
    /**
     * insert user
     * @param user
     */
    void insertUser(User user);

    /**
     * selectAllUser
     * @return
     */
    List<User> selectAllUser();

    /**
     * selectUserById
     * @param uid
     * @return
     */
    User selectUserById(int uid);
}
